<?php
/**
 * Created by JetBrains PhpStorm.
 * User: satiri
 * Date: 12/17/12
 * Time: 2:05 PM
 * To change this template use File | Settings | File Templates.
 */
 
class property_name extends Base_model
{
    function __construct()
    {
        parent::__Construct();
        $this->init("property_name","id_propertyname","nama_property");

        //setiap property punya value
        $this->load->model("property_value","val");
    }
	
	function get_by_jenisalat($id_jenisalat)
	{
		$result = $this->get_all("nama_property",false,array("id_jenisalat"=>$id_jenisalat));
		return $result;
	}
}